package springtestpkg;

import static org.junit.Assert.*;

import java.util.List;

import javax.ws.rs.QueryParam;

import org.junit.Test;

import com.mbmed.doctor.commons.mapper.ModelVo;
import com.mbmed.doctor.login.service.Vae1Service;
import com.mbmed.doctor.medadvice.service.SysparametersService;
import com.mbmed.doctor.paa1.service.Paa1Service;
 

public class SpringUtilV3_prjcliTest {
	
	
	
	@Test
	public void test_selectByBck01b() throws Exception {
 		SpringUtilV3_prjcli.setLocations("C:\\0wkspc\\移动医疗源码\\移动医护\\移动医生站\\hodoctor\\src\\springtestpkg","applicationContext-service.xml,applicationContext-datasource.xml");
 		Vae1Service  c=	(Vae1Service) SpringUtilV3_prjcli.getBean( Vae1Service.class);
	Object li=	c.getVae1List("21;25;30;36;39;77");
	System.out.println(li);
	
	
 
	}
//
//	@Test
//	public void test() throws Exception {
// 		SpringUtilV3_prjcli.setLocations("C:\\0wkspc\\移动医疗源码\\移动医护\\移动护士站\\honurse\\test\\springtestpkg","applicationContext-service.xml,applicationContext-datasource.xml");
//		Lab1Service  c=	(Lab1Service) SpringUtilV3_prjcli.getBean( Lab1Service.class);
//	List li=	c.inspectListByvaa04("11414");
//	System.out.println(li);
//	
//	
//	
//	}
//	
//	@Test
//	public void test_inspectDetailBylab01() throws Exception {
// 		SpringUtilV3_prjcli.setLocations("C:\\0wkspc\\移动医疗源码\\移动医护\\移动护士站\\honurse\\test\\springtestpkg","applicationContext-service.xml,applicationContext-datasource.xml");
//		Lab1Service  c=	(Lab1Service) SpringUtilV3_prjcli.getBean( Lab1Service.class);
//	List li=	c.inspectDetailBylab01(47897);
//	System.out.println(li);
//	
//	
// 
//	}
	//http://192.168.1.77:8080/honurse/sysparameters/getftpsysparameters
	//http://192.168.1.77:1314/honurse/sysparameters/getftpsysparameters
	@Test
	public void test_GetFtpSysParameters() throws Exception {
 		SpringUtilV3_prjcli.setLocations("C:\\0wkspc\\移动医疗源码\\移动医护\\移动护士站\\honurse\\test\\springtestpkg","applicationContext-service.xml,applicationContext-datasource.xml");
 		SysparametersService  c=	(SysparametersService) SpringUtilV3_prjcli.getBean( SysparametersService.class);
	Object li=	c.GetFtpSysParameters();
	System.out.println(li);
	
	
 
	}
	
	
//	http://192.168.1.77:8080/honurse/paa1/paa1ListByvaa01vaa07?vaa01=58899&vaa07=53156
//	http://192.168.1.77:1314/honurse/paa1/paa1ListByvaa01vaa07?vaa01=58899&vaa07=53156
	@Test
	public void test_paa1ListByvaa01vaa07() throws Exception {
 		SpringUtilV3_prjcli.setLocations("C:\\0wkspc\\移动医疗源码\\移动医护\\移动护士站\\honurse\\test\\springtestpkg","applicationContext-service.xml,applicationContext-datasource.xml");
 		Paa1Service  c=	(Paa1Service) SpringUtilV3_prjcli.getBean( Paa1Service.class);
	Object li=	c.paa1ListByvaa01vaa07(58899 ,53156);
	System.out.println(li);
	
	
 
	}
	
	//   http://192.168.1.77:8080/honurse/paa1/paa1imgbyftp?vaa01=58899&vaa07=53156&paa01=5&acf01=2&vae01=53156
	//   http://192.168.1.77:1314/honurse/paa1/paa1imgbyftp?vaa01=58899&vaa07=53156&paa01=5&acf01=2&vae01=53156
	@Test
	public void test_paa1imgbyftp() throws Exception {
 		SpringUtilV3_prjcli.setLocations("C:\\0wkspc\\移动医疗源码\\移动医护\\移动护士站\\honurse\\test\\springtestpkg","applicationContext-service.xml,applicationContext-datasource.xml");
 		Paa1Service  c=	(Paa1Service) SpringUtilV3_prjcli.getBean( Paa1Service.class);
 		//	  public ModelVo paa1ImgByFtp(@QueryParam("paa01") String paa01, @QueryParam("vaa01") String vaa01, @QueryParam("vae01") String vae01, @QueryParam("acf01") String acf01)
 		//5   AA01":58899,"VAA07":53156,"VAF01":117463, 
 	//   	c.paa1ImgByFtp(paa01, vaa01, vae01, acf01)
 		//vae01 zosh vaf07 haosyo ma yonsheo
	Object li=	c.paa1ImgByFtp("5", "58899", "1", "2");

	System.out.println(li);
	
	
 
	}
	
	
	
	
	
	
	

}
